<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>
            <table border='1' cellspacing='0'>
                <tr>
                    <th>用户名</th>
                    <th>email</th>
                    <th>贡献</th>
                    <th>操作</th>
                </tr>
                <?php foreach($data as $key=>$value){?>
                <tr>
                    <td><?php print $value['name'];?></td>
                    <td><?php print $value['mail'];?></td>
                    <td><?php print $value['contribution'];?></td>
                    <td>
                        <a href="<?php print U('Admin/user/delete?id='.$value['id']);?>">删除</a>
                    </td>
                </tr>
                <?php }?>
            </table>
        
        </div>
    </body>
</html>
